package com.husky.easyexcle.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @author huanfuan
 * @date 2023/5/27 10:25
 */


@ColumnWidth(25)
@HeadRowHeight(-1) //标题行高
@HeadFontStyle(fontHeightInPoints = 12, color = 9) //
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND,fillForegroundColor = 62)
@Data // lombok注解
@Slf4j
public class TaskDependentEntity {

    @ExcelProperty(value = "作业流项目编号",index = 0)
    private String proceeProjectCode;

    @ExcelProperty(value = {"*作业流名称","必填：作业流名称命名规范：JF_1000001（10代表1代ODS抽数作业流）\n" +
            "JF_1100001（11代表2代ODS抽数作业流）\n" +
            "JF_2100001（21代表缓冲层数据加载作业流）\n" +
            "JF_3100001（31代表贴源层数据加载作业流）\n" +
            "JF_4100001（41代表模型层数据加载作业流）\n" +
            "JF_5100001（51代表汇总层数据加载作业流）"},index = 1)
    private String processName;

    @ExcelProperty(value = {"*作业名称","作业名称规范：\n" +
            "JOB_存储过程名（去掉前缀PR）eg.JOB_S_CBBS_FCRDB_CH_ACCT_MAST（缓冲层作业）JOB_O_CBBS_FCRDB_CH_ACCT_MAST（贴源层作业）\n" +
            "JOB_T01_PARTY_CBBS（模型层作业）\n" +
            "JOB_C01_CUST（汇总层作业）"},index = 2)
    private String taskName;

    @ExcelProperty(value = {"*作业类型","作业依赖组件名称，可以填写：\n" +
            "dependent"},index = 3)
    private String taskType;

    @ExcelProperty(value = {"*依赖_项目编号","必填：该作业流要依赖哪个项目下作业，需填写"},index = 4)
    private String depProjectCode;

    @ExcelProperty(value = {"*依赖_作业名称","必填：作业流名称命名规范：JF_1000001（10代表1代ODS抽数作业流）\n" +
            "JF_1100001（11代表2代ODS抽数作业流）\n" +
            "JF_2100001（21代表缓冲层数据加载作业流）\n" +
            "JF_3100001（31代表贴源层数据加载作业流）\n" +
            "JF_4100001（41代表模型层数据加载作业流）\n" +
            "JF_5100001（51代表汇总层数据加载作业流）"},index = 5)
    private String dependentTask;

    @ExcelProperty(value = "*依赖组件时间周期",index = 6)
    private String depCycle;

    @ExcelProperty(value = "*具体时间",index = 7)
    private String detaValue;







}
